using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using MvcApplication5.Models.Mapping;

namespace MvcApplication5.Models
{
    public partial class TestContext : DbContext
    {
        static TestContext()
        {
            Database.SetInitializer<TestContext>(null);
        }

        public TestContext()
            : base("Name=TestContext")
        {
        }

        public DbSet<T_SB> T_SB { get; set; }
        public DbSet<T_User> T_User { get; set; }
        public DbSet<T_UserRole> T_UserRole { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new T_SBMap());
            modelBuilder.Configurations.Add(new T_UserMap());
            modelBuilder.Configurations.Add(new T_UserRoleMap());
        }
    }
}
